package com.farmpost.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 租房表
 * </p>
 *
 * @author king
 * @since 2022-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Rent对象", description="租房表")
public class Rent implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "是否整租")
    private Boolean isEntireRent;

    @ApiModelProperty(value = "租房类型")
    private String rentType;

    @ApiModelProperty(value = "租房位置")
    private String rentLocation;

    @ApiModelProperty(value = "租金")
    private Integer rentMoney;

    @ApiModelProperty(value = "所在楼层")
    private String rentFloor;

    @ApiModelProperty(value = "联系方式")
    private String contact;

    @ApiModelProperty(value = "租房介绍")
    private String rentIntroduction;

    @ApiModelProperty(value = "出租1还是租房0")
    private Boolean rentOrLease;

    private LocalDateTime dateTime;

    @ApiModelProperty(value = "是否删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "预留字段")
    private String other;

    @ApiModelProperty(value = "整租or合租")
    @TableField(exist = false)
    private String descEntireRent;

    @ApiModelProperty(value = "出租or租房")
    @TableField(exist = false)
    private String descRent;

}
